import http from "../utils/request";


//获取商品类目
export const getCategory = () => http.get("/category/getCategory")

//添加产品
export const addCategory = (categoryName, categoryImgurl) => http.post('/category/addCategory', {
    categoryName,
    categoryImgurl
})

// 上传类目图片
// export const uploadCategoryImg = () => http.post("/students/uploadStuAvatar", {
//     headimgurl
// })

//删除类目
export const deleteCategory = (category_id) => http.get('/category/delCategory', {
    params: { category_id }
})